package com.example.demo.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.entity.EmployeeEntity;
import com.example.demo.mapper.EmployeeHWLMapper;
import com.example.demo.service.EmployeeHWLService;

@Service
public class EmployeeHWLServiceImpl implements EmployeeHWLService {
	@Resource
	private EmployeeHWLMapper employeeHWLMapper;

	/**
	 * select info
	 * 
	 * @param number
	 * @return EmployeeEntity
	 * 
	 */

	@Override
	public EmployeeEntity selectByNumber(String number) {
		EmployeeEntity employee = employeeHWLMapper.selectByNumber(number);

		// 検索結果判定
		if (employee != null)
			return employee;

		return new EmployeeEntity();

	}

}